A={10,20,30,40,50}
B={30,50,88,76,20}

# 交集
print(A.intersection(B))
print(A & B)

# 并集
print(A.union(B))
print(A | B)

# 差集
print(A.difference(B))
print(A - B)

# 补集
print(A.symmetric_difference(B))
print(A ^ B)
